home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Apple II Magazines (PO)
/
Nibble Volume 12, No. 10 (1991-10)(MindCraft Publishing)(Side A)[a].zip
/
Nibble Volume 12, No. 10 (1991-10)(MindCraft Publishing)(Side A)[a].po
/
CREATE.SAMPLE.bas
< prev
next >
Wrap
BASIC Source File
|
1996-12-24
|
1KB
|
30 lines
1 REM ************************
2 REM * CREATE.SAMPLE *
3 REM * BY Charles T. Hill *
4 REM * Copyright 1991 by *
5 REM * MindCraft Publ. Corp.*
6 REM * Lincoln, MA 01773 *
7 REM ************************
10 REM Make a sample text file for testing FILE.SIFTER
20 D$ = CHR$(4):P$ = "SAMPLE"
30 PRINT "Where do you wish to save SAMPLE?"
40 INPUT "Slot number: ";SN
50 INPUT "Drive number: ";DN
60 REM Input is simple because program is run only once
70 PRINT D$;"prefix ,S";SN;",D";DN
80 PRINT D$"open";P$: PRINT D$"write";P$
90 PRINT SPC( 5);"This is a sample text file"
100 PRINT "for testing FILE.SIFTER."
110 PRINT "The next line is blank"
120 PRINT
130 PRINT "and so are the next two lines."
140 PRINT : PRINT
150 PRINT SPC( 5);"These two lines continue, but"
160 PRINT "the next three lines are blank."
170 PRINT : PRINT : PRINT
180 PRINT SPC( 5);"The last line has"
190 PRINT "the control characters ";
200 PRINT CHR$(7);" and "; CHR$(8);".": REM CTRL-G and CTRL-H
210 PRINT D$;"close";P$
220 PRINT "SAMPLE has been written"
230 END